package qy.qyalgotrader.utils.plotter;

import qy.jalgotrade.bar.Bar.Frequency;

/**
 * 直线图:
 * 
 * @author qy
 *
 */
public class RealtimeLineMarker extends RealtimeSeries<Double, Double> {

	private String __marker;

	/**
	 * 
	 * @param frequency frequency
	 */
	public RealtimeLineMarker(Frequency frequency) {

		this(frequency, null);
	}

	/**
	 * @param frequency frequency
	 * @param label label
	 */
	public RealtimeLineMarker(Frequency frequency, String label) {

		super(frequency, label);
		__marker = " ";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see qy.jalgotrade.utils.plotter.Series#getMarker()
	 */
	@Override
	public String getMarker() {

		return __marker;
	}

	/**
	 * 
	 * @param marker marker
	 */
	public void setMarker(String marker) {

		__marker = marker;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see qy.jalgotrade.utils.plotter.Series#needColor()
	 */
	@Override
	public boolean needColor() {

		return true;
	}
}
